package com.example.jd.finance.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.jd.finance.entity.MsCustomerRecords;
import com.example.jd.finance.entity.param.DetailPageParam;
import com.example.jd.finance.entity.vo.MsCustomerRecordsExcelVO;
import com.example.jd.finance.entity.vo.MsCustomerRecordsVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author admin
 * @since 2021-11-06
 */
public interface MsCustomerRecordsMapper extends BaseMapper<MsCustomerRecords> {

    MsCustomerRecords findOne();

    List<MsCustomerRecordsVO> detailPage(Page page, @Param("param") DetailPageParam param);

    int getCountTotoal(@Param("param")DetailPageParam param);

    long queryApplyNumCurrentDay(@Param("enterpriseWechatCode") String enterpriseWechatCode);

    long queryApplyPassedNumCurrentDay(@Param("enterpriseWechatCode") String enterpriseWechatCode);

    long queryCountApplyNum(@Param("enterpriseWechatCode") String enterpriseWechatCode);

    long queryCountApplyPassedNum(@Param("enterpriseWechatCode") String enterpriseWechatCode);

    List<MsCustomerRecordsExcelVO> detailExcel(@Param("param") DetailPageParam param);

    long queryApplyNumByCurrentDay(@Param("enterpriseWechatCode")String enterpriseWechatCode, @Param("currentDay") String currentDay);

    long queryApplyPassedNumByCurrentDay(@Param("enterpriseWechatCode")String enterpriseWechatCode, @Param("currentDay") String currentDay);
}
